package br.infnet.blocoarquiteturajava.utils;

import java.util.Random;

public class GeraContaUtils {

	// private static int tamanho = 8;
	private static Random random = new Random();

	public static Long gerarNovaConta() {
		long nrConta = random.nextInt();

		while (nrConta < 0)
			nrConta = random.nextInt();
		// while (nrConta > 99999999) {
		// nrConta = random.nextLong();
		// }
		//
		// String vTmp = String.valueOf(random);
		//
		// int qtd = vTmp.length();
		//
		// while (qtd < tamanho) {
		// vTmp = "0" + vTmp;
		// qtd++;
		// }
		// return String.valueOf(vTmp);
		return nrConta;
	}
}
